<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ include file="/common/include/page.jsp" %>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>

<![endif]-->
<link rel="stylesheet" type="text/css" href="${rootPath }/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="${rootPath }/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="${rootPath }/lib/Hui-iconfont/1.0.8/iconfont.css" />

<link rel="stylesheet" type="text/css" href="${rootPath }/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="${rootPath }/static/h-ui.admin/css/style.css" />
<script type="text/javascript" src="${rootPath }/lib/ueditor/1.4.3/ueditor.config.js"></script> 
<script type="text/javascript" src="${rootPath }/lib/ueditor/1.4.3/ueditor.all.min.js"> </script> 
<script type="text/javascript" src="${rootPath }/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<!--/meta 作为公共模版分离出去-->

<link href="${rootPath }/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="page-container">
	<form id="form-codeing" class="form form-horizontal" method="post"  action="${rootPath }/back/teacher_<%=request.getParameter("type") %>.htm" enctype="multipart/form-data">
	<c:if test='<%=request.getParameter("type").equals("edit") %>'>
			<input type="hidden" name="id" value="${teacher.id }"/>
			<input type="hidden" name="photoPath" value="${teacher.photoPath }"/>
	</c:if>
  	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-2">老师名字：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="${teacher.name}" name="name" placeholder="老师名字" required> 
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-2">老师简介：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<textarea class="input-text" style="line-height: 1em;height: 10em;" placeholder="老师简介" name="brief" required>${teacher.brief}</textarea> 
		</div>
	</div>
	
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-2">老师图片：</label>
		<div class="formControls col-xs-8 col-sm-9">
		<input type="file" name="teacherImg"/>
		<p><img alt="" src="${rootPath }${teacher.photoPath}" width="200"/></p>
		</div>
	</div>
	<div class="row cl" style="text-align: center;">
		<input type="submit" value="保存"  class="btn btn-success"/>
	</div>
</form>
</div>
<script type="text/javascript">
</script>
</body>
</html>